package com.xzz.mybatis.generator.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: hhz
 * @createDate: 2021-3-10
 */
@Data
@Component
@ConfigurationProperties(prefix = "xzz")
@PropertySource("classpath:dataSource.properties")
public class MyDataSourceConfig {
    /**
     * 文件映射成Map
     *
     */
    private Map<String, Map<String,String>> datasource;
}
